<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<span>本例我们使用component方法来注册自定义一个组件<br/></span>
			<vue-item></vue-item>
		</div>
	</body>
<script type="text/javascript">
//要先注册组件再实例化
Vue.component('vue-item', {
	template: "<ul><li>这是LI内容</li></ul>"
});
var app = new Vue({
	el: '#app'
});
</script>
</html>
